package com.springcloud.system.user.service;

import com.springcloud.common.entity.Resource;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mori
 * @since 2019-11-04
 */
public interface ResourceService extends IService<Resource> {

    /**
     * 加载所有资源
     * @return
     */
    Set<Resource> resources();

    /**
     * 加载username对应资源
     * @param username
     * @return
     */
    Set<Resource> resources(String username);
}
